<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="UTF-8" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <p>{{ text }}</p>
      <p v-text="text"></p>
      <p v-html="text"></p>

      <p v-once="num">{{num}}</p>

      <button @click="num++">添加</button>
    </div>
    <script src="./js/vue.js "></script>
    <script>
      const vm = new Vue({
        data: {
          text: "<p>hello world</p>",
          num: 0,
        },
      });
      vm.$mount("#app");
    </script>
  </body>
</html>
